num1 = 10
num2 = 10

print(f'{num1 = }, {num2 = }')
print(f'{id(num1) = }, {id(num2) = }')
print('-' * 40)


num3 = 10.1
num4 = 10.1

print(f'{num3 = }, {num4 = }')
print(f'{id(num3) = }, {id(num4) = }')
print('-' * 40)


str1 = 'hello'
str2 = 'hello'

print(f'{str1 = }, {str2 = }')
print(f'{id(str1) = }, {id(str2) = }')

# 在python中，当数字、字符串类型的值相同时，即使变量不同也是同一块地址

print('#' * 50)

quotient1 = 10 / 3
quotient2 = 10 // 3
print(f'{quotient1 = }, {quotient2 = }')

remaining = 10 % 3
print(f'{remaining = }')

q, r = divmod(10, 3)
print(f'{q = }, {r = }')

print('#' * 50)

print(5 ** 2)

print('#' * 50)


